aux_source_directory(. TEST_SCHEME_SRCS)

add_subdirectory(atoms)
add_subdirectory(basic)
add_subdirectory(ds)
add_subdirectory(io)
add_subdirectory(syntax)
add_subdirectory(types)


#file(GLOB TEST_ATOMS_SRCS atoms/*.c)
#file(GLOB TEST_BASIC_SRCS basic/*.c)
#file(GLOB TEST_IO_SRCS io/*.c)
#file(GLOB TEST_SYNTAX_SRCS syntax/*.c)
#file(GLOB TEST_TYPES_SRCS types/*.c)

#add_library(scheme_test ${TEST_SCHEME_SRCS} ${TEST_ATOMS_SRCS} ${TEST_BASIC_SRCS} ${TEST_IO_SRCS} ${TEST_SYNTAX_SRCS} ${TEST_TYPES_SRCS})
#target_link_libraries(scheme_test scheme_atoms_test scheme_basic_test scheme_io_test scheme_syntax_test scheme_types_test)

add_custom_target(check_scheme COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS
        check_scheme_atoms check_scheme_basic check_scheme_ds check_scheme_io check_scheme_syntax check_scheme_types)
